﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Docx2Epub.Util
{
    public static class Extensions
    {
        public static string JoinAsString(this IEnumerable<int> values, string connector)
        {
            StringBuilder sb = new StringBuilder();

            foreach (var v in values)
            {
                sb.Append(v);
                sb.Append(connector);
            }

            sb.Remove(sb.Length - connector.Length, connector.Length);
            return sb.ToString();
        }



    }
}
